package cn.da.shuai.cool.system.model.entity.dept;

import cn.da.shuai.cool.common.entity.EntityBase;
import cn.da.shuai.cool.system.model.enums.dept.DeptStatusType;
import cn.da.shuai.cool.system.model.enums.dept.DeptType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 系统部门表
 * </p>
 *
 * @author 大帅哥
 * @since 2025-01-03
 */
@Getter
@Setter
@TableName("cool_dept")
@Schema(name = "CoolDept", description = "系统部门表")
public class CoolDept extends EntityBase {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "部门名称")
    @TableField("dept_name")
    private String deptName;

    @Schema(description = "部门编码")
    @TableField("dept_code")
    private String deptCode;

    @Schema(description = "父部门id")
    @TableField("parent_id")
    private Long parentId;

    @Schema(description = "部门层级树")
    @TableField("dept_tree")
    private String deptTree;

    @Schema(description = "部门类型")
    @TableField("dept_type")
    private DeptType deptType;

    @Schema(description = "显示顺序")
    @TableField("order_num")
    private Integer orderNum;

    @Schema(description = "负责人")
    @TableField("leader")
    private String leader;

    @Schema(description = "联系电话")
    @TableField("phone")
    private String phone;

    @Schema(description = "邮箱")
    @TableField("email")
    private String email;

    @Schema(description = "部门状态（1正常 2停用 3删除）")
    @TableField("status")
    private DeptStatusType status;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;
}